﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DiaryPlanner
{
    public partial class MainForm : Form
    {
        Diary DiaryPage=new Diary();
        Planner PlannerPage=new Planner();
        Memo MemoPage=new Memo();
        Account AccountPage=new Account();
        Album AlbumPage=new Album();
        Config ConfigPage=new Config();

        Boolean logInOK = false;

        public MainForm()
        {
            InitializeComponent();
            //LogIn lg = new LogIn(this);
            //lg.ShowDialog();            
        }

        private void DiaryToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.mainPagePanel.Controls.Clear();
            this.mainPagePanel.Controls.Add(DiaryPage);
        }

        private void PlannerToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.mainPagePanel.Controls.Clear();
            this.mainPagePanel.Controls.Add(PlannerPage);
        }

        private void MemoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.mainPagePanel.Controls.Clear();
            this.mainPagePanel.Controls.Add(MemoPage);
        }

        private void AccountToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.mainPagePanel.Controls.Clear();
            this.mainPagePanel.Controls.Add(AccountPage);

        }

        private void AlbumToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.mainPagePanel.Controls.Clear();
            this.mainPagePanel.Controls.Add(AlbumPage);

        }

        private void ConfigToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.mainPagePanel.Controls.Clear();
            this.mainPagePanel.Controls.Add(ConfigPage);
        }

       

     
    }
}
